package com.yuntsg.ruiijn.paperana.test;

import cn.hutool.core.io.FileUtil;

import java.io.File;

public class 文字查重批量修改文件名 {
    public static void main(String[] args) {

        String path = "D:\\Users\\55419\\Desktop\\临时\\宁夏区医院\\";

        File file = new File(path);
        File[] ls = FileUtil.ls(path);
        for (File l : ls) {
            File file1 = new File(path + file.getName() + l.getName());
            System.out.println(file1.getName());
            FileUtil.copy(l, file1, false);
        }

    }
}
